import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import MyComponents from '@/components/install.js'

const highLight = {
    mounted(el, binding) {
      console.log(el, binding);
      el.style.color = binding.value.color
  }
}

const globalData = {
  name:'this is global data'
}

export const app = createApp(App)

app.config.globalProperties.$appid = 'wx63f379266b5cf40f';
app.config.globalProperties.$localUrl = 'http://ndnut3.natappfree.cc';
app.config.globalProperties.$serveHost = 'http://www.bufantec.com';
app.config.globalProperties.$axios = axios

app.use(store).use(router).use(MyComponents).directive('highlight',highLight).provide('globalData',globalData).mount('#app')

